﻿<navigation:Page 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.DomainServices" xmlns:Web="clr-namespace:PivotViewerBase.Web;assembly=PivotViewerBase" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="PivotViewerBase.Page1"
           mc:Ignorable="d"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="Page1 Page">
    <Grid x:Name="LayoutRoot">

        <riaControls:DomainDataSource x:Name="vStoreWithDemographicDomainDataSource" AutoLoad="True" Height="0" LoadedData="vStoreWithDemographicDomainDataSource_LoadedData_1" QueryName="GetVStoreWithDemographicsQuery" Width="0" d:DesignData="{d:DesignInstance Web:vStoreWithDemographic, CreateList=true}">
            <riaControls:DomainDataSource.DomainContext>
                <Web:AdventureWorksDomainContext/>
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>
        <sdk:DataGrid x:Name="vStoreWithDemographicDataGrid" AutoGenerateColumns="False" ItemsSource="{Binding Data, ElementName=vStoreWithDemographicDomainDataSource}" Margin="116,128,124,152" RowDetailsVisibilityMode="VisibleWhenSelected">
            <sdk:DataGrid.Columns>
                <sdk:DataGridTextColumn x:Name="annualRevenueColumn" Binding="{Binding AnnualRevenue}" Header="Annual Revenue" Width="SizeToHeader"/>
                <sdk:DataGridTextColumn x:Name="annualSalesColumn" Binding="{Binding AnnualSales}" Header="Annual Sales" Width="SizeToHeader"/>
                <sdk:DataGridTextColumn x:Name="bankNameColumn" Binding="{Binding BankName}" Header="Bank Name" Width="SizeToHeader"/>
                <sdk:DataGridTextColumn x:Name="brandsColumn" Binding="{Binding Brands}" Header="Brands" Width="SizeToHeader"/>
                <sdk:DataGridTextColumn x:Name="businessEntityIDColumn" Binding="{Binding BusinessEntityID, Mode=OneWay}" Header="Business Entity ID" IsReadOnly="True" Width="SizeToHeader"/>
                <sdk:DataGridTextColumn x:Name="businessTypeColumn" Binding="{Binding BusinessType}" Header="Business Type" Width="SizeToHeader"/>
                <sdk:DataGridTextColumn x:Name="internetColumn" Binding="{Binding Internet}" Header="Internet" Width="SizeToHeader"/>
                <sdk:DataGridTextColumn x:Name="nameColumn" Binding="{Binding Name, Mode=OneWay}" Header="Name" IsReadOnly="True" Width="SizeToHeader"/>
                <sdk:DataGridTextColumn x:Name="numberEmployeesColumn" Binding="{Binding NumberEmployees}" Header="Number Employees" Width="SizeToHeader"/>
                <sdk:DataGridTextColumn x:Name="specialtyColumn" Binding="{Binding Specialty}" Header="Specialty" Width="SizeToHeader"/>
                <sdk:DataGridTextColumn x:Name="squareFeetColumn" Binding="{Binding SquareFeet}" Header="Square Feet" Width="SizeToHeader"/>
                <sdk:DataGridTextColumn x:Name="yearOpenedColumn" Binding="{Binding YearOpened}" Header="Year Opened" Width="SizeToHeader"/>
            </sdk:DataGrid.Columns>
        </sdk:DataGrid>

    </Grid>
</navigation:Page>
